/**
 * com.monte.entity.CoreEntity.java.CoreEntity
 * from 下午03:12:01
 */
package com.monte.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;

/**
 * 所有持久化对象的基类
 * @author FengMy
 *
 */
@MappedSuperclass
public abstract class CoreEntity implements Serializable {
	private static final long serialVersionUID = -4713687787569519080L;
	
	/**
	 * ID,作为主键.
	 */
	@Id
	@Column(name="FID",insertable=true,length=44,nullable=false,updatable=false)
	private String id;

	public void setId(String id) {
		this.id = id;
	}

	public String getId() {
		return id;
	}
}
